package com.fangque.kepp.framework.user.dao;

import com.fangque.kepp.framework.user.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author : liyk
 * @version 1.0
 * @date : 2019/10/31 11:25
 */
public interface UserRepository  extends JpaRepository<User, Long> {

    @Override
    Optional<User> findById(Long aLong);

    Optional<User> findByUsername(String name);
}
